function bciTopoplot(runs,method,cond)
% bciTopoplot(runs,method,cond)
% plots topographic maps 
% INPUT:
%   runs - runs to involve
%   method - string of comparison method:
%             'tval' - t-values
%             'rsqu' - Rsquare values
%             'svm' - weights of a support vector machine
%   cond - two element vector of conditions (classes) to compare (classify)
% OUTPUT: 
%   none
%

global GLOBALbci;
global GLOBALtrainDat;

%% Plotting is done from all data 
[tmpbci,Train]=bciGetTrainDat(GLOBALbci,GLOBALtrainDat{runs});

if nargin<3,
    tmpbci.eventsToClassify=[1 3];
    disp('Plotting cond1 vs cond3');
else
    tmpbci.eventsToClassify=cond;
end
if nargin <2,
    method='svm';
end

W = bciMultiCompareFeatures(tmpbci,Train,method,2);
figure;
bciTopoplotResults(tmpbci,W{1});

